//
//  RootViewController.m
//  ViewTransitionTest
//
//  Created by wangrui on 14-2-24.
//  Copyright (c) 2014年 PPS. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    
    UIButton *bt = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [bt setTitle:@"push" forState:UIControlStateNormal];
    bt.frame = CGRectMake(100, 100, 100, 30);
    [self.view addSubview:bt];
    [bt addTarget:self action:@selector(push:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)push:(id)sender{
    [self.navigationController pushViewController:[UIViewController new] animated:YES];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
